<template>
  <column :options="options" v-model:reduced="columns" />
</template>
<script setup>
import { ref } from 'vue'
import column from '@/components/icon-column-select/icon-column-select.vue'
import { useColumns } from './provide-context.js'
let columns = useColumns()
let options = ref([
  {
    title: '角色名称',
    dataIndex: 'roleName',
    key: 'roleName',
    fixed: 'left',
    width: 150,
  },
  {
    title: '角色描述',
    dataIndex: 'roleDesc',
    key: 'roleDesc',
  },
  {
    title: '数据权限',
    dataIndex: 'dataScope',
    key: 'dataScope',
  },
  {
    title: '功能权限',
    dataIndex: 'allowedActions',
    key: 'allowedActions',
  },
  {
    title: '操作',
    dataIndex: 'operation',
    key: 'operation',
    fixed: 'right',
    width: 160,
  },
])
</script>
